@use './theme/config.scss' as config;

.pt5 {
  padding-top: 5px;
}

ol,
ul {
  list-style: none;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}

.ml10 {
  margin-left: 10px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}

.ml20 {
  margin-left: 20px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

.el-message-box__status + .el-message-box__message {
  word-break: break-word;
}

.el-dialog:not(.is-fullscreen) {
  margin-top: 10vh !important;
}

.el-dialog__body {
  padding: 20px !important;
}

.el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
  overflow: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 10px 20px 0;
}

.custom-el-table {
  .el-table {
    .el-table__header-wrapper,
    .el-table__fixed-header-wrapper {
      th {
        word-break: break-word;
        @include config.useTheme {
          background: getVar("tableHeaderBgColor") !important;
        }
        @include config.useTheme {
          color: getVar("tableHeaderTextColor");
        }
        height: 40px;
        font-size: 14px;
        font-family: '黑体', serif;
      }
    }

    .el-table__body-wrapper {
      .el-button [class*='el-icon-'] + span {
        margin-left: 1px;
      }
    }
  }

  .el-table__empty-text {
    color: black !important;
    font-weight: 900;
    font-size: 17px;
    font-family: '黑体', serif;
    letter-spacing: 1px;
  }

  .el-table .fixed-width .el-button--mini {
    padding-left: 0;
    padding-right: 0;
    width: inherit;
  }

  /** 表格更多操作下拉样式 */
  .el-table .el-dropdown-link,
  .el-table .el-dropdown-selfdefine {
    cursor: pointer;
    margin-left: 5px;
  }

  .el-table .el-dropdown,
  .el-icon-arrow-down {
    font-size: 12px;
  }
}

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px;
}

/** 表格布局 **/
.pagination-container {
  position: relative;
  height: 25px;
  margin-bottom: 10px;
  padding: 12px 20px !important;
}

/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #ffffff none;
  border-radius: 4px;
}

.pagination-container .el-pagination {
  right: 0;
  position: absolute;
}

@media (max-width: 768px) {
  .pagination-container .el-pagination > .el-pagination__jump {
    display: none !important;
  }
  .pagination-container .el-pagination > .el-pagination__sizes {
    display: none !important;
  }
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48d1cc;
  border-color: #48d1cc;
  color: #ffffff;
}

.el-button--cyan {
  background-color: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* image */
.img-circle {
  border-radius: 50%;
}

.img-lg {
  width: 120px;
  height: 120px;
}

.avatar-upload-preview {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: 0.8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

.addTemplateDialog {
  .footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

.CustomDrawerTitle {
  width: 100%;
  height: 42px;
  @include config.useTheme {
    border-bottom: getVar("customDrawerTitleBorderBottom") !important;
  }
  display: flex;
  align-items: center;

  .title {
    font-size: 20px;
    font-weight: 900;
    font-family: "黑体", serif;
    color: black;
    letter-spacing: 1px;
  }

  .icon {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    @include config.useTheme {
      background-image: getVar("sideActiveImage") !important;
    }
    margin-right: 10px;

    i {
      color: white;
      font-size: 24px;
      font-weight: 900;
    }
  }
}

// 内容区撑满抽屉
.position-absolute {
  position: absolute !important;
}

// 内容区撑满抽屉
.content-drawer {
  padding: 20px;

  .el-drawer__container {
    border-radius: 5px !important;
    overflow: hidden;
  }

  .el-drawer {
    .el-drawer__body {
      background-color: #fff;
      padding: 15px;
      overflow: hidden;
    }
  }
}

// 原生填报表格样式
.custom-native-table {
  .topBox {
    height: 45px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;

    td {
      display: flex;
      align-items: center;
    }

    td:nth-child(1) {
      border-right: 1px solid #000;
    }

    td:nth-child(2) {
      padding-left: 15px;
    }
  }

  .containerBox {
    height: 240px;

    td:nth-child(1) {
      border-right: 1px solid #000;
      display: flex;
      justify-content: center;
      align-items: center;
      writing-mode: vertical-rl;
      border-bottom: 1px solid #000;

      span {
        margin-top: 2px;
        transform: rotate(-90deg);
      }
    }

    td:nth-child(2) {
      padding: 15px 0 0 15px;
      border-bottom: 1px solid #000;
    }
  }

  .container-risk {
    height: 60px;
    border-bottom: 1px solid #000;

    td {
      display: flex;
      align-items: center;
    }

    td:nth-child(1) {
      border-right: 1px solid #000;
    }

    td:nth-child(2) {
      padding-left: 15px;
    }
  }

  td {
    font-size: 16px;
  }
}

.slide-top-enter-active,
.slide-top-leave-active {
  transform: translateX(0);
  transition: all 0.2s linear;
}

.slide-top-enter,
.slide-top-leave-to {
  transform: translateX(-100%); /* 从左侧完全移出 */
  transition: all 0.2s linear;
}

.slide-bottom-enter-active,
.slide-bottom-leave-active {
  transform: translateX(0);
  transition: all 0.2s linear;
}

.slide-bottom-enter,
.slide-bottom-leave-to {
  transform: translateX(100%); /* 从左侧完全移出 */
  transition: all 0.2s linear;
}

.custom-form-map {
  .el-select {
    .el-select__caret {
      color: #0184ff !important;
    }
  }

  .el-select--mini {
    .el-input--mini {
      input {
        border: 1px solid #0184ff !important;
        border-radius: 4px !important;
      }

      height: 32px !important;
      line-height: 32px !important;
    }
  }

  .el-range-editor--mini {
    border: 1px solid #0184ff !important;
    border-radius: 4px !important;

    .el-input__inner {
      border: 1px solid #0184ff !important;
      border-radius: 4px !important;
    }
  }

  .el-input__inner {
    background-color: transparent !important;
    border-color: #0184ff !important;
    color: #d9ebff;
  }

  .custom-from-Input {
    width: 125px;
    margin: 0 10px 0 0;
    position: relative;
    bottom: 5px;
  }
}

.chart-tooltip {
  background-color: rgba(0, 0, 0, 1);
  opacity: 1;
  z-index: 9999 !important;
  color: white;
}

.yzh-zgq-imgBox {
  flex: 1;
  margin-bottom: 10px;
  background-color: #22324b;
  cursor: pointer;
  padding: 5px;
  overflow: hidden;
}

.yzh-zgh-imgBox {
  flex: 1;
  margin-bottom: 10px;
  background-color: #22324b;
  cursor: pointer;
  padding: 5px;
  overflow: hidden;
}

.yzh-zgq {
  color: #00b1ff;
  width: 100%;
  height: 37px;
  background: url("~@/assets/images/jahy/ybj2.png") no-repeat 0 0;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.yzh-zgh {
  color: #30efbb;
  width: 100%;
  height: 37px;
  background: url("../../assets/images/jahy/zgh.png") no-repeat 0 0;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}

.lc_caixukunList {
  flex: 1;
  height: 100%;
  margin-left: 10px;
  overflow: hidden;

  .container {
    width: 100%;
    height: 30px;
    background: url("../../assets/images/HY/cxkBack.png") no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 23px;
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
    align-items: center;
  }
}

/*弹框*/
.ol-popup {
  position: absolute;
  z-index: 9999999999;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  display: inline-block;

  .guanbixx {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    color: white;
    margin: 11.5px;
    font-size: 14px;
    background-image: url("../../assets/images/layoutImage/waterX.png");
    background-size: 100% 100%;
    z-index: 11;
    cursor: pointer;
  }

  .ol_qipao {
    position: relative;
    max-height: 320px;
    overflow: auto;
    color: #333333;
    width: auto;
    border-radius: 3px;
    z-index: 1;
    padding: 0;
    display: inline-block;
    border-image-source: url(../../assets/images/layoutImage/dialog_body.png);
    border-image-slice: 17 18 fill;
    border-image-width: 14px;
    border-image-repeat: stretch;
    background: transparent;

    .mapHoverTitle {
      height: 42px;
      padding: 0 15px;
      color: #fff;
      line-height: 42px;
      font-size: 16px;
      font-weight: bold;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      width: 100%;
      display: inline-block;
      position: relative;
    }

    .mapHoverTitle::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(
          to right,
          #fff 0%,
          #fff 10%,
          #2aa4eb 10%,
          #2aa4eb 90%,
          #fff 90%,
          #fff 100%
      );
    }

    .mapHoverContent {
      padding: 10px;
      font-size: 16px;
      color: #fff;

      ul {
        margin-bottom: 0 !important;
        padding-right: 4rem !important;
      }

      li {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        line-height: 16px;

        label {
          padding-left: 10px;
          color: #fff;
        }
      }
    }
  }
}

#heliupup {
  .ol_qipao {
    overflow: hidden;
    max-height: 400px;
  }

  label {
    text-align: right !important;
    // min-width: 106px!important;
  }

  .mapHoverContent {
    max-height: 360px;
    overflow: hidden;
  }

  .contens_gao {
    max-height: 320px;
    overflow: auto;
    padding-bottom: 10px;
  }
}

.missingCountBox {
  color: red;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.bdh-el-from {
  .el-form-item {
    display: flex;

    .el-form-item__content {
      flex: 1;
      display: flex;

      .el-date-editor {
        width: 100%;
      }

      .el-input-number {
        width: 100%;
      }

      .el-upload-container {
        display: flex;
        margin-left: 10px;

        button {
          margin-left: 10px;
        }
      }
    }

    label {
      width: 100px;
    }
  }
}

.division-form {
  width: 89%;
  padding: 0 20px 0 0;
  position: relative;

  .operate {
    position: absolute;
    right: -101px;
    top: 50%;
    margin-top: -27.5px;
  }

  .province-box {
    display: flex;
    width: 100%;

    .city {
      .el-form-item__content {
        margin-left: 15px !important;
      }
    }

    .county {
      .el-form-item__content {
        margin-left: 15px !important;
      }
    }
  }
}

.charts-title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
}

.sorted {
  @include config.useTheme {
    color: getVar("tableHeaderSelectedColor") !important;
  }
  font-weight: 900 !important;
}
